﻿@model AdminAddViewModel

@{
    ViewBag.Title = "新增管理员信息";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Add</title>
</head>
<body>

    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="panel panel-headline">
                <div class="panel-heading">
                    <h2 class="panel-title">新增管理员信息</h2>
                </div>

                <div class="panel-body">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-8">
                                <form method="post" enctype="multipart/form-data">

                                    <div class="form-group">
                                        <label for="Account">账号:</label>
                                        @*@Html.TextBoxFor(a => a.RolesTitle ,new {@case="form-control"})*@
                                        <input asp-for="Account" class="form-control" />
                                        <span asp-validation-for="Account" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.RolesTitle)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Pwd">密码:</label>
                                        @*@Html.TextBoxFor(a => a.RolesTitle ,new {@case="form-control"})*@
                                        <input asp-for="Pwd" class="form-control" />
                                        <span asp-validation-for="Pwd" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.RolesTitle)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="NickName">姓名:</label>
                                        <input asp-for="NickName" class="form-control" />
                                        @*@Html.TextBoxFor(a => a.NickName ,new {@case="form-control"})*@
                                        <span asp-validation-for="NickName" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.NickName)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Birthday">出生日期:</label>
                                        @*@Html.TextBoxFor(a => a.Birthday ,new {@case="form-control"})*@
                                        <input asp-for="Birthday" class="form-control" />
                                        <span asp-validation-for="Birthday" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.Birthday)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Gender">性别:</label>
                                        <label class="radio-inline">
                                            <input type="radio" name="Gender" value="0" checked /> 男
                                        </label>

                                        <label class="radio-inline">
                                            <input type="radio" name="Gender" value="1" /> 女
                                        </label>
                                        <span asp-validation-for="Gender" class="text-danger"></span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Photo">头像:</label>
                                        @*@Html.TextBoxFor(a => a.Photo ,new {@case="form-control"})*@
                                        @*<input asp-for="Photo" class="form-control" />*@
                                        <input type="file" name="Photo" />
                                        <span asp-validation-for="Photo" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.Photo)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Tel">联系方式:</label>
                                        @*@Html.TextBoxFor(a => a.Tel ,new {@case="form-control"})*@
                                        <input asp-for="Tel" class="form-control" />
                                        <span asp-validation-for="Tel" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.Tel)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Email">邮箱:</label>
                                        @*@Html.TextBoxFor(a => a.Email ,new {@case="form-control"})*@
                                        <input asp-for="Email" class="form-control" />
                                        <span asp-validation-for="Email" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.Email)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="QQNumber">QQ账号:</label>
                                        @*@Html.TextBoxFor(a => a.QQNumber ,new {@case="form-control"})*@
                                        <input asp-for="QQNumber" class="form-control" />
                                        <span asp-validation-for="QQNumber" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.QQNumber)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Address">家庭住址:</label>
                                        @*@Html.TextBoxFor(a => a.Address ,new {@case="form-control"})*@
                                        <input asp-for="Address" class="form-control" />
                                        <span asp-validation-for="Address" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.Address)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <label for="Title">权限等级:</label>
                                        @*@Html.TextBoxFor(a => a.RolesTitle ,new {@case="form-control"})*@
                                        @*<input asp-for="RolesId" class="form-control" />*@
                                        @Html.DropDownList("RolesId",(SelectList)ViewBag.RolesList,new{@class="form-control"})
                                        <span asp-validation-for="RolesId" class="text-danger">
                                            @*@Html.ValidationMessageFor(adm => adm.RolesTitle)*@
                                        </span>
                                    </div>

                                    <div class="form-group">
                                        <button class="btn btn-primary">提交</button>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>

</body>
</html>
